import http from '@/common/http/http'

export function csMealsProductListApi(data){
	return http({
		url:`/course/csMealsProduct/list`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function paymentMealsApi(data){
	return http({
		url:`/course/csPurchaseMealsOrder/paymentMeals`,
		isToken : true,
		isOpenId : true,
		data,
	})
}

export function csPurchaseMealsOrderListApi(data){
	return http({
		url:`/course/csPurchaseMealsOrder/list`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function csMealsOrderListApi(data){
	return http({
		url:`/course/csMealsOrder/list`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function applyForRefundApi(data){
	return http({
		url:`/course/csMealsOrder/applyForRefund`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function queryPageManageListApi(data){
	return http({
		url:`/course/csMealsOrder/queryPageManageList`,
		isToken : true,
		data,
		method: 'GET'
	})
}

export function teachAddApi(data){
	return http({
		url:`/course/csMealsOrder/teachAdd`,
		isToken : true,
		data,
	})
}

export function sumMeals(data){
	return http({
		url:`/course/csMealsOrder/sumMeals`,
		isToken : true,
		data,
		method: 'GET'
	})
}
export function getDepartlistAllApi(data){
	return http({
		url:'/sys/sysDepart/listAll',
		data,
		isToken : true,
		method: 'GET'
	})
}

export function listByDiningDayApi(data){
	return http({
		url:'/course/csMealsOrder/listByDiningDay',
		data,
		isToken : true,
		method: 'GET'
	})
}
